$base-size: 14px;
$bill-size: 4 * $base-size;

.bottomTabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 0 5px #ccc;
}

.tab {
  width: 3 * $base-size;
  color: $font-gray;

  &.active {
    color: $main-red;
  }

  &:nth-child(3) {
    width: $bill-size;
    visibility: hidden;
  }
}

.tabImg {
  position: relative;
  margin: 0 auto;
  width: 2.5 * $base-size;
  height: 2.5 * $base-size;
}

.tabImgHidden,
.tabImgVisible {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.tabImgVisible {
  visibility: visible;
  opacity: 1;
}

.tabImgHidden {
  visibility: hidden;
  opacity: 0;
}

.tabText {
  font-size: $base-size;
  line-height: 1.5 * $base-size;
}

.bill {
  position: absolute;
  left: 50%;
  top: -$base-size;
  width: $bill-size;
  height: $bill-size;
  border-radius: 50%;
  background: linear-gradient(120deg, $main-yellow 0%, $main-red 100%);
  transform: translate(-50%, 0);
  box-shadow: 0 4px 5px rgba($main-red, 0.5);

  &::before,
  &::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    content: '';
    width: 0.5 * $bill-size;
    height: 6px;
    background-color: #fff;
    border-radius: 3px;
  }

  &::before {
    transform: translate(-50%, -50%);
  }

  &::after {
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}
